<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Projet Jetpack:  Fichier source de /home/p1006250/lif7-projet-jetpack/src/SdlJeu.h</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>


</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Projet Jetpack
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Généré par Doxygen 1.7.6.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Page&#160;principale</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Fichiers</span></a></li>
      <li><a href="dirs.html"><span>Répertoires</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Liste&#160;des&#160;fichiers</span></a></li>
      <li><a href="globals.html"><span>Membres&#160;de&#160;fichier</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('_sdl_jeu_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">SdlJeu.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_sdl_jeu_8h.html">Aller à la documentation de ce fichier.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef _SDLJEU_H</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define _SDLJEU_H</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="preprocessor">#include &lt;SDL/SDL.h&gt;</span>
<a name="l00005"></a>00005 <span class="preprocessor">#include &lt;SDL/SDL_ttf.h&gt;</span>
<a name="l00006"></a>00006 <span class="preprocessor">#include &quot;<a class="code" href="_jeu_8h.html">Jeu.h</a>&quot;</span>
<a name="l00007"></a>00007 <span class="preprocessor">#include &quot;<a class="code" href="_sprite_8h.html">Sprite.h</a>&quot;</span>
<a name="l00008"></a>00008 <span class="preprocessor">#include &quot;assert.h&quot;</span>
<a name="l00009"></a>00009 <span class="preprocessor">#include &quot;<a class="code" href="_score_8h.html">Score.h</a>&quot;</span>
<a name="l00010"></a>00010 <span class="preprocessor">#include &lt;time.h&gt;</span>
<a name="l00011"></a>00011 
<a name="l00012"></a><a class="code" href="_sdl_jeu_8h.html#a6068a247ff9ece1b0a9773c58144906c">00012</a> <span class="preprocessor">#define LARGEUR_FENETRE 1800</span>
<a name="l00013"></a><a class="code" href="_sdl_jeu_8h.html#afd1a1e285af564b849b17498e82e1a41">00013</a> <span class="preprocessor"></span><span class="preprocessor">#define HAUTEUR_FENETRE 415</span>
<a name="l00014"></a><a class="code" href="_sdl_jeu_8h.html#a8a6befd630ea1c2ab260266f7466540c">00014</a> <span class="preprocessor"></span><span class="preprocessor">#define CACHE_SIZE 5000</span>
<a name="l00015"></a>00015 <span class="preprocessor"></span>
<a name="l00016"></a>00016 
<a name="l00021"></a><a class="code" href="structs_input.html">00021</a> <span class="keyword">struct </span><a class="code" href="structs_input.html">sInput</a>
<a name="l00022"></a>00022 {
<a name="l00023"></a><a class="code" href="structs_input.html#a4c161d38ba868801ea17009c6635e77a">00023</a>         <span class="keywordtype">char</span> <a class="code" href="structs_input.html#a4c161d38ba868801ea17009c6635e77a">key</a>[SDLK_LAST];
<a name="l00024"></a>00024 };
<a name="l00025"></a><a class="code" href="_sdl_jeu_8h.html#af2341b18d3846190d5e052dd40ef72af">00025</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structs_input.html">sInput</a> <a class="code" href="struct_input.html">Input</a>;
<a name="l00026"></a>00026 
<a name="l00027"></a>00027 
<a name="l00031"></a><a class="code" href="struct_tileset_struct.html">00031</a> <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00032"></a>00032 {
<a name="l00033"></a><a class="code" href="struct_tileset_struct.html#a738272b7b6e2f1fc89b30f8fe5c69d6c">00033</a>         <span class="keywordtype">int</span> <a class="code" href="struct_tileset_struct.html#a738272b7b6e2f1fc89b30f8fe5c69d6c">LARGEUR_TILE</a>,HAUTEUR_TILE;
<a name="l00034"></a><a class="code" href="struct_tileset_struct.html#a074228423034ef5970eb0063e47f17d9">00034</a>         SDL_Surface* <a class="code" href="struct_tileset_struct.html#a074228423034ef5970eb0063e47f17d9">tileset</a>;
<a name="l00035"></a><a class="code" href="struct_tileset_struct.html#a9ae987ca523efb4efdffd1153dae13ee">00035</a>         SDL_Rect* <a class="code" href="struct_tileset_struct.html#a9ae987ca523efb4efdffd1153dae13ee">props</a>;
<a name="l00036"></a>00036 }  <a class="code" href="struct_tileset_struct.html">TilesetStruct</a>;
<a name="l00037"></a>00037 
<a name="l00038"></a>00038 
<a name="l00042"></a><a class="code" href="structsdl_jeu.html">00042</a> <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00043"></a>00043 {
<a name="l00044"></a><a class="code" href="structsdl_jeu.html#a6e86870a6deca6724587a225b5255e2d">00044</a>     <a class="code" href="struct_tileset_struct.html">TilesetStruct</a> <a class="code" href="structsdl_jeu.html#a6e86870a6deca6724587a225b5255e2d">sTile</a>;
<a name="l00045"></a><a class="code" href="structsdl_jeu.html#af8ecd261d2be49f4f871b798faf0bf3a">00045</a>     <a class="code" href="struct_jeu.html">Jeu</a> <a class="code" href="structsdl_jeu.html#af8ecd261d2be49f4f871b798faf0bf3a">Jeu</a>;
<a name="l00046"></a><a class="code" href="structsdl_jeu.html#ac480aa6f513bc16164ff1417ef177603">00046</a>     <a class="code" href="struct_sprite.html">Sprite</a>* <a class="code" href="structsdl_jeu.html#ac480aa6f513bc16164ff1417ef177603">perso</a>;
<a name="l00047"></a><a class="code" href="structsdl_jeu.html#af6a1e9a15b28ef549d577605c0666f93">00047</a>         SDL_Surface* <a class="code" href="structsdl_jeu.html#af6a1e9a15b28ef549d577605c0666f93">screen</a>;
<a name="l00048"></a><a class="code" href="structsdl_jeu.html#a7053525e65201f159ef8fe972d4a8e8f">00048</a>         <a class="code" href="struct_input.html">Input</a> <a class="code" href="structsdl_jeu.html#a7053525e65201f159ef8fe972d4a8e8f">in</a>;
<a name="l00049"></a>00049 } <a class="code" href="structsdl_jeu.html">sdlJeu</a>;
<a name="l00050"></a>00050 
<a name="l00051"></a>00051 
<a name="l00052"></a>00052 
<a name="l00058"></a>00058 <span class="keywordtype">void</span> <a class="code" href="_sdl_jeu_8c.html#a907831170dedec3a0af4e4b1e178b854" title=" Brief Description  Analyse l&#39;état des events.  ">updateEvents</a>(<a class="code" href="struct_input.html">Input</a>* in);
<a name="l00059"></a>00059 
<a name="l00066"></a>00066 SDL_Surface* <a class="code" href="_sdl_jeu_8c.html#a152cc45e4b709a2ea3858f7e6f12cdce" title=" Brief Description  Charge une image.  ">LoadImage32</a>(SDL_Surface* tileset, <span class="keyword">const</span> <span class="keywordtype">char</span>* fichier_image);
<a name="l00067"></a>00067 
<a name="l00073"></a>00073 <span class="keywordtype">void</span> <a class="code" href="_sdl_jeu_8c.html#ac603fcfc9773438938b8913ea38ac0ce" title=" Brief Description  Initialise in.  ">initEvents</a>(<a class="code" href="struct_input.html">Input</a>* in);
<a name="l00074"></a>00074 
<a name="l00080"></a>00080 <span class="keywordtype">void</span> <a class="code" href="_sdl_jeu_8c.html#a97bab0e0a1d30cbaa850699e06dcab92" title=" Brief Description  Fait tourner le jeu sous SDL.  ">sdljeuBoucle</a>(<a class="code" href="structsdl_jeu.html">sdlJeu</a> * Sj);
<a name="l00081"></a>00081 
<a name="l00086"></a>00086 <span class="keywordtype">void</span> <a class="code" href="_sdl_jeu_8c.html#a5e89604c62c942df8c827ac35f936fdf" title=" Brief Description  Initialise le SDL.  ">sdlInit</a>(<a class="code" href="structsdl_jeu.html">sdlJeu</a> * pSj);
<a name="l00087"></a>00087 
<a name="l00092"></a>00092 <span class="keywordtype">void</span> <a class="code" href="_sdl_jeu_8c.html#a1d05d7d58fdff72e97f5b8e70b10299d" title=" Brief Description  Libère SDL.  ">sdlLibere</a>(<a class="code" href="structsdl_jeu.html">sdlJeu</a> * pSj);
<a name="l00093"></a>00093 
<a name="l00102"></a>00102 <span class="keywordtype">void</span> <a class="code" href="_sdl_jeu_8c.html#a17f751f0ff69b052d47dde9c64a64dca" title=" Brief Description  Affiche le score.  ">AfficherScoreSDL</a>(<span class="keywordtype">int</span> Sscore,SDL_Surface* screen,TTF_Font *Snorlax,SDL_Color Noir);
<a name="l00103"></a>00103 
<a name="l00111"></a>00111 <span class="keywordtype">void</span> <a class="code" href="_sdl_jeu_8c.html#af207f90fc1d6368579d6f71377c41843" title=" Brief Description  Charge les tileset.  ">chargerTilesetSDL</a>(FILE* F,<a class="code" href="structs_terrain.html">Terrain</a>* pTer, <a class="code" href="struct_tileset_struct.html">TilesetStruct</a> * pTile);
<a name="l00112"></a>00112 
<a name="l00120"></a>00120 <span class="keywordtype">int</span> <a class="code" href="_sdl_jeu_8c.html#ace46279dca20b51cfe4dc815c0bf28f4" title=" Brief Description  Affiche un sprite.  ">AfficherSprite</a>(<a class="code" href="struct_sprite.html">Sprite</a>* perso,SDL_Surface* screen);
<a name="l00121"></a>00121 
<a name="l00131"></a>00131 <span class="keywordtype">int</span> <a class="code" href="_sdl_jeu_8c.html#a79155188b3432437d7b7e8853074a60e" title=" Brief Description  Affiche la carte.   ">AfficherMapSDL</a>(<a class="code" href="structs_terrain.html">Terrain</a>* pTer,SDL_Surface* screen, <a class="code" href="struct_sprite.html">Sprite</a> * pSprite, <a class="code" href="struct_tileset_struct.html">TilesetStruct</a> * pTile);
<a name="l00132"></a>00132 
<a name="l00140"></a>00140 <span class="keywordtype">void</span> <a class="code" href="_sdl_jeu_8c.html#a92ebd83590fab5f62f26f371b60e1b14" title=" Brief Description  Initialise les tilesets.   ">tilesetInit</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> * level, <a class="code" href="structs_terrain.html">Terrain</a> * pTer, <a class="code" href="struct_tileset_struct.html">TilesetStruct</a> * pTile);
<a name="l00141"></a>00141 
<a name="l00151"></a>00151 <span class="keywordtype">void</span> <a class="code" href="_sdl_jeu_8c.html#a6f766d4620f74ae8bcdac5f887092695" title=" Brief Description  Affiche le menu de fin de partie.   ">MenuFinJeu</a>(SDL_Surface *ecran, TTF_Font *Mario,TTF_Font *Snorlax,
<a name="l00152"></a>00152                   SDL_Color Noir, SDL_Color Rouge);
<a name="l00153"></a>00153 
<a name="l00154"></a>00154 <span class="preprocessor">#endif</span>
</pre></div></div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="_sdl_jeu_8h.html">SdlJeu.h</a>      </li>

    <li class="footer">Généré le Lundi Décembre 17 2012 01:09:40 pour Projet Jetpack par
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.6.1 </li>
   </ul>
 </div>


</body>
</html>
